import { ref } from 'vue'

export default function ()  {
    /* --------------------------- 数据 --------------------------- */
    let sum = ref(0);

    /* --------------------------- 方法 --------------------------- */
    function add() {
        sum.value++;
    }

    /* --------------------------- 暴露 --------------------------- */
    return {sum, add}
}

